﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MASTER/Z16.Master" AutoEventWireup="true" CodeBehind="ListarDemanda.aspx.cs" Inherits="Z16.SITE.ListarDemanda" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript">

        function redirecionar() { window.location = "addCadDemanda.aspx"; } 
    
    </script>

     <div class="error" id="divError" runat="server" visible="false">
        <asp:Label ID="lblMensagem" runat="server"/>
    </div>

    <div>
        <h3>DEMANDA</h3>
    </div>

    <div class="box">
        </br>

        <table>
            <tr>
                <td>Demanda :</td>
                <td>
                     <asp:TextBox ID="txtDemanda" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Data Início :</td>
                <td>
                        <asp:TextBox ID="txtDataIni" runat="server" Width="100px" ></asp:TextBox>

                </td>
            </tr>
            <tr>
                <td>Data Fim :</td>
                <td>
                    <asp:TextBox ID="txtDataFim" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>Projeto</td>
                <td>
                    <asp:DropDownList ID="ddlProjeto" runat="server"></asp:DropDownList>
                </td>
            </tr>
          <%--  <tr>
                        <td>Status</td>
                        <td><asp:DropDownList ID="ddlStatus" runat="server">
                        </asp:DropDownList></td>
            </tr>--%>
            <tr>
                <td>Prioridade</td>
                <td><asp:DropDownList ID="ddlPrioridade" runat="server">
                    </asp:DropDownList></td>
            </tr>

            <tr>
                <td>
                    <asp:Button class= "botaoCadastro" ID="btnPesquisar" runat="server" Text="Pesquisar" onclick="btnPesquisar_Click" />
                </td>
             </tr>
        </table>

        </br>
    </div>

    </br>
    </br>

    <div>

        <asp:GridView ID="GridView1" runat="server" CellPadding="2" ForeColor="#000033" GridLines="Both"
                  AutoGenerateColumns="False" DataKeyNames="Cod_Demanda" PageSize="5" Font-Names="Trebuchet MS" 
                  BorderColor = "#421C52" BorderStyle="Double">

            <HeaderStyle BackColor="#000033" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2ff1BF" />
      
            <Columns>
                
                <asp:TemplateField HeaderText="Demanda">
                    <ItemTemplate>
                        <%# Eval("Nome_Demanda")%>
                    </ItemTemplate>
                </asp:TemplateField>

                 <asp:TemplateField HeaderText="Ínicio Previsto">
                    <ItemTemplate>
                        <%# Eval("Data_Inicio_Prevista")%>
                    </ItemTemplate>
                </asp:TemplateField>

                 <asp:TemplateField HeaderText="Fim Previsto">
                    <ItemTemplate>
                        <%# Eval("Data_Fim_Prevista")%>
                    </ItemTemplate>
                </asp:TemplateField>



                <asp:TemplateField HeaderText="">
                    <ItemTemplate>
                        <a href="addCadDemanda.aspx?id=<%#DataBinder.Eval(Container.DataItem,"Cod_Demanda")%>" class="link">Editar</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    
        <br />
      <input class= "botaoCadastro" type="button" value="Nova Demanda"  onclick="redirecionar();" />   

    </div>

</asp:Content>

